using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace FileManager.Models
{
    public class Tag
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public string Name { get; set; }
        
        public string Color { get; set; }
        
        public bool IsSystem { get; set; } = false;

        // 导航属性
        public virtual ICollection<FileTagRelation> FileTagRelations { get; set; }
    }
}